<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib uri="/WEB-INF/myfaces_core.tld" prefix="f" %>
<%@ taglib uri="/WEB-INF/myfaces_html.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/tomahawk.tld" prefix="t" %>
<%@ taglib uri="/WEB-INF/htmLib.tld" prefix="htm" %>

<%@include file="/pages/pageTop.jspf" %>

<f:view>
    <htm:div styleClass="pageTitle">
        <t:outputText value="Submit Thesis Proposal" />
    </htm:div>
    
    <htm:div styleClass="formBlock">
		<h:form id="proposalForm">
		
			<t:messages globalOnly="false" />
			          
			<htm:div styleClass="standardBlock">
			    <t:outputLabel styleClass="label" value="Student: #{mbThesisBean.user.name}" />
			</htm:div>
			
			<htm:div styleClass="standardBlock">
				<h:panelGrid 
				    columns="2" 
				    border="0"
				    columnClasses="alignRight, alignLeft">
					
					<t:outputLabel styleClass="label" value="Title: " />
					<t:inputText value="#{mbThesisBean.thesis.title}" />
					
					<t:outputLabel styleClass="label" value="Annotation: " />
					<t:inputTextarea value="#{mbThesisBean.thesis.annotation}" rows="5" cols="50" />
					
					<t:outputLabel styleClass="label" value="Tasks: " />
					<t:inputTextarea value="#{mbThesisBean.thesis.tasks}" rows="5" cols="50" />
				
	                <t:outputLabel styleClass="label" value="Programming Technologies: " />
					<t:inputTextarea value="#{mbThesisBean.thesis.usedTechnologies}" rows="5" cols="50" />
				
	                <t:outputLabel styleClass="label" value="Consultant: " />
					<t:inputText value="#{mbThesisBean.thesis.consultant}" />
					
					<t:outputLabel styleClass="label" value="Execution Time: " />
					<t:inputText value="#{mbThesisBean.thesis.executionTime}" size="7" />
					
					<t:outputLabel styleClass="label" value="Supervisor: " />
					<t:inputText value="#{mbThesisBean.supervisor}" />
				</h:panelGrid>
			</htm:div>
			
			<htm:div styleClass="standardBlock">
				<t:commandButton 
					value="Submit Proposal"
					action="#{mbThesisBean.actionSubmitProposal}" />
			</htm:div>
		</h:form>
    </htm:div>
</f:view>
        
<%@include file="/pages/pageBottom.jspf" %>